package com.originalpoint.origin_server.pojo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Schema(name = "Login" ,description = "登录时查询的用户信息表")
public class Login {
    @Schema(name = "userId" ,description = "用户ID")
    private Integer userId; // 添加userId字段

    @Schema(name = "username" ,description = "用户名字")
    private String username;

    @Schema(name = "password" ,description = "用户密码")
    private String password;

    @Schema(name = "role" ,description = "用户权限")
    private Integer role;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    // 省略构造函数、Getter和Setter方法
}
